import request from '@/utils/request';

// 创建评价
export const createReview = (data) => {
  return request({
    url: '/reviews',
    method: 'post',
    data
  });
};

// 获取车辆评价
export const getCarReviews = (carId) => {
  return request({
    url: `/reviews/car/${carId}`,
    method: 'get'
  });
};

// 获取用户评价
export const getUserReviews = () => {
  return request({
    url: '/reviews/user',
    method: 'get'
  });
}; 